import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    previewerVisable: false,
    previewUrl: ''
  },
  mutations: {
    ['SET_CURRENT_PREVIEW_URL']: (state, payload) => {
      state['previewUrl'] = payload
    },
    ['SET_PREVIEWER_VISABLE']: (state, payload) => {
      state['previewerVisable'] = payload
    }
  },
  actions: {}
})
